<template>
  <section class="righttask-box">
    <div class="corner-lb"></div>
    <div class="corner-rb"></div>
    <h3 class="task-title">
      飞行总览
      <img class="icon" src="../../../../../assets/leftbg10.png" alt="" />
    </h3>
    <div class="task-num">
      <div class="task-list" :span="8" v-for="(item, index) in taskMoreList" :key="index">
        <div>
          <img class="task-icon" :src="item.url" alt="" />
        </div>
        <div class="task-con">
          <p class="task-con-tit">{{ item.number }}</p>
          <p>{{ item.title }}</p>
        </div>
      </div>
    </div>
  </section>
</template>
<script lang="ts" setup>
import { dividerProps } from "element-plus";
import { ref, onMounted, onBeforeUnmount, defineProps } from "vue";
const props = defineProps({ taskMoreList: Array });
</script>

<style lang="scss" scoped>
.righttask-box {
  background: rgb(2 19 20 / 80%);
  border: 1px solid;
  margin-top: 0.5vh;
  border-image: radial-gradient(circle,
      rgb(36 229 241 / 17%),
      rgb(255 255 255 / 17%)) 1 1;
  height: 25vh;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0px;
    width: 22px;
    height: 22px;
    border-top: 1px solid #24e5f1;
    opacity: 0.4;
  }

  &::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    border-top: 1px solid #24e5f1;
    opacity: 0.4;
  }

  .corner-lb {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 22px;
    height: 22px;
    border-bottom: 1px solid #24e5f1;
    border-left: 1px solid #24e5f1;
    opacity: 0.4;
  }

  .corner-rb {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 22px;
    height: 22px;
    border-bottom: 1px solid #24e5f1;
    border-right: 1px solid #24e5f1;
    opacity: 0.4;
  }

  .task-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4vh;
    padding-left: 1.5vh;
    margin: 0;
    font-family: PingFangSC, "PingFang SC";
    font-size: 2vh;
    font-weight: 500;
    color: #fffefe;
    user-select: none;
    background: radial-gradient(ellipse 140% 300% at 100% 50%,
        rgba(1, 34, 35, 0.2) 28%,
        rgba(7, 217, 221, 0.7) 100%);

    .icon {
      width: 3vh;
      margin-right: 1vw;
    }
  }
}

.task-num {
  display: flex;
  flex-wrap: wrap;
  /* 允许换行 */
  align-items: center;
  padding: 0.5vh;
  // margin-bottom: 1rem;

  .task-list {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: calc(33.33333% - 1vh);
    margin: 1vh 0.5vh;

    .task-icon {
      width: 7vw;
      height: 7vh;
      -webkit-user-drag: none;
      margin-left: 0.5vh;
    }

    .task-con {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      margin-left: 0.8vh;
      font-size: 1.1vh;
      font-weight: 400;
      width: 100%;
      color: #ffffff;

      .task-con-tit {
        font-size: 2.2vh;
        font-weight: bold;
      }
    }
  }
}
</style>
